import { http } from "@/utils/http/index";

export const deleteVideo = (params?: any) => {
  return http.request<any>("delete", "/video/deleteVideo", {
    params
  });
};

export const updateVideo = (data?: any) => {
  return http.request<any>("put", "/video/updateVideo", {
    data
  });
};

export const addUserVideoRecord = (data?: any) => {
  return http.request<any>("post", "/video/addUserVideoRecord", {
    data
  });
};

export const updateStudyDuration = (data?: any) => {
  return http.request<any>("put", "/video/updateStudyDuration", {
    data
  });
};

export const getUserVideoRecord = (params?: any) => {
  return http.request<any>("get", "/video/getUserVideoRecord", {
    params
  });
};
